<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/mytable/Fk_reim.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Fk_reim.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'reim_id',
                footer: "Foots",
                cnName: '费用报销',
                name: 'mytable/Fk_reim',
                url: "/Fk_reim/",
                sortName: "reim_id"
            });
            const editFormFields = ref({"reim_id":"","depid_oa":[],"username":"","bdatetime":"","typeid":"","kxprop":"","fj_num":"","fkcontent":"","fsny":"","contract":"","skprop":"","biz":"","skr":"","fkfs":"","fkrq":"","fkbl":"","cardno":"","bank":"","ykcontent":"","remark":"","yk_je":"","yk_je_big":"","sf_je":"","sf_je_big":"","check_je":"","check_je_big":"","total_j":"","total_j_big":"","fujian":""});
            const editFormOptions = ref([[{"title":"序号","required":true,"field":"reim_id","disabled":true,"type":"number"},
                               {"dataKey":"tree_department","data":[],"title":"部门名称","field":"depid_oa","disabled":true,"type":"cascader"},
                               {"dataKey":"uerlist","data":[],"title":"姓名","field":"username","disabled":true,"type":"select"},
                               {"title":"填报时间","field":"bdatetime","disabled":true,"type":"datetime"},
                               {"dataKey":"kxxz","data":[],"title":"款项性质","field":"kxprop","type":"select"},
                               {"dataKey":"typelist","data":[],"title":"业务类型","field":"typeid","disabled":true,"type":"select"}],
                              [{"title":"业务内容","field":"fkcontent","colSize":5},
                               {"dataKey":"yyyymm","data":[],"title":"费用发生时间","field":"fsny","type":"select"},
                               {"title":"附件数量","field":"fj_num","type":"number"}],
                              [{"dataKey":"skflx","data":[],"title":"收款方类型","field":"skprop","type":"select"},
                               {"title":"合同","field":"contract","colSize":5},
                               {"dataKey":"biz","data":[],"title":"币种","field":"biz","type":"select"}],
                              [{"title":"收款人","field":"skr","colSize":12}],
                              [{"dataKey":"fkfs","data":[],"title":"付款方式","field":"fkfs","colSize":5,"type":"select"},
                               {"title":"付款日期","field":"fkrq","colSize":4,"type":"date"},
                               {"title":"付款比例(%)","field":"fkbl","type":"number"}],
                              [{"title":"银行卡号","field":"cardno","colSize":5},
                               {"title":"开户行","field":"bank","colSize":7}],
                              [{"title":"应扣项目","field":"ykcontent","colSize":5},
                               {"title":"扣款事由","field":"remark","colSize":7}],
                              [{"title":"应扣金额(大写)","field":"yk_je_big","disabled":true,"colSize":5},
                               {"title":"应扣金额","field":"yk_je","type":"decimal"}],
                              [{"title":"实付金额(大写)","field":"sf_je_big","disabled":true,"colSize":5},
                               {"title":"实付金额","field":"sf_je","type":"decimal"}],
                              [{"title":"审核金额(大写)","field":"check_je_big","disabled":true,"colSize":5},
                               {"title":"审核金额","field":"check_je","type":"decimal"}],
                              [{"title":"含税总额(大写)","field":"total_j_big","disabled":true,"colSize":5},
                               {"title":"总金额(含税)","field":"total_j","disabled":true,"type":"text"}],
                              [{"title":"附件","field":"fujian","type":"file"}]]);
            const searchFormFields = ref({"depid_oa":[],"username":"","bdatetime":"","total_j":[null,null],"typeid":"","skr":"","cardno":"","bank":"","check_je":"","ykcontent":"","yk_je":"","fkfs":"","contract":"","fkcontent":"","remark":"","sf_je":"","kxprop":"","fsny":"","skprop":"","biz":"","yk_je_big":"","sf_je_big":"","check_je_big":"","total_j_big":""});
            const searchFormOptions = ref([[{"title":"附件数量","field":"fj_num","type":"number"},{"title":"付款日期","field":"fkrq","type":"date"},{"title":"付款比例(%)","field":"fkbl","type":"number"}],[{"dataKey":"tree_department","data":[],"title":"部门名称","field":"depid_oa","type":"cascader"},{"dataKey":"uerlist","data":[],"title":"姓名","field":"username","type":"like"},{"title":"填报时间","field":"bdatetime","type":"datetime"},{"dataKey":"kxxz","data":[],"title":"款项性质","field":"kxprop","type":"select"},{"dataKey":"typelist","data":[],"title":"业务类型","field":"typeid","type":"select"}],[{"title":"业务内容","field":"fkcontent"},{"dataKey":"yyyymm","data":[],"title":"费用发生时间","field":"fsny","type":"select"}],[{"dataKey":"skflx","data":[],"title":"收款方类型","field":"skprop","type":"select"},{"title":"合同","field":"contract"},{"dataKey":"biz","data":[],"title":"币种","field":"biz","type":"select"}],[{"title":"收款人","field":"skr"}],[{"dataKey":"fkfs","data":[],"title":"付款方式","field":"fkfs","type":"select"}],[{"title":"银行卡号","field":"cardno"},{"title":"开户行","field":"bank"}],[{"title":"应扣项目","field":"ykcontent"},{"title":"扣款事由","field":"remark"}],[{"title":"应扣金额(大写)","field":"yk_je_big"},{"title":"应扣金额","field":"yk_je","type":"decimal"}],[{"title":"实付金额(大写)","field":"sf_je_big"},{"title":"实付金额","field":"sf_je","type":"decimal"}],[{"title":"审核金额(大写)","field":"check_je_big"},{"title":"审核金额","field":"check_je","type":"decimal"}],[{"title":"含税总额(大写)","field":"total_j_big"},{"title":"总金额(含税)","field":"total_j","type":"range"}]]);
            const columns = ref([{field:'reim_id',title:'序号',type:'int',link:true,width:30,readonly:true,require:true,align:'left',sort:true},
                       {field:'depid_oa',title:'部门名称',type:'int',bind:{ key:'tree_department',data:[]},width:90,readonly:true,align:'left'},
                       {field:'username',title:'姓名',type:'string',bind:{ key:'uerlist',data:[]},width:90,readonly:true,align:'left'},
                       {field:'bdatetime',title:'填报时间',type:'datetime',width:100,readonly:true,align:'left',sort:true},
                       {field:'total_j',title:'总金额(含税)',type:'decimal',width:90,readonly:true,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:110,hidden:true,align:'left',sort:true},
                       {field:'stepid',title:'步骤',type:'int',bind:{ key:'steplist',data:[]},width:80,readonly:true,align:'left'},
                       {field:'step_username',title:'当前处理人',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'typeid',title:'业务类型',type:'int',bind:{ key:'typelist',data:[]},width:80,readonly:true,align:'left'},
                       {field:'fujian',title:'附件',type:'file',width:110,hidden:true,align:'left'},
                       {field:'skr',title:'收款人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'cardno',title:'银行卡号',type:'string',width:120,hidden:true,align:'left'},
                       {field:'bank',title:'开户行',type:'string',width:120,hidden:true,align:'left'},
                       {field:'check_je',title:'审核金额',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'ykcontent',title:'应扣项目',type:'string',width:110,hidden:true,align:'left'},
                       {field:'yk_je',title:'应扣金额',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'fkfs',title:'付款方式',type:'string',bind:{ key:'fkfs',data:[]},width:120,hidden:true,align:'left'},
                       {field:'fj_num',title:'附件数量',type:'int',width:80,hidden:true,align:'left'},
                       {field:'contract',title:'合同',type:'string',width:120,hidden:true,align:'left'},
                       {field:'fkcontent',title:'业务内容',type:'string',width:110,hidden:true,align:'left'},
                       {field:'remark',title:'扣款事由',type:'string',width:110,hidden:true,align:'left'},
                       {field:'sf_je',title:'实付金额',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'hq_username',title:' 会签人员',type:'string',width:110,hidden:true,align:'left'},
                       {field:'kxprop',title:'款项性质',type:'string',bind:{ key:'kxxz',data:[]},width:110,hidden:true,align:'left'},
                       {field:'fsny',title:'费用发生时间',type:'string',bind:{ key:'yyyymm',data:[]},width:110,hidden:true,align:'left'},
                       {field:'skprop',title:'收款方类型',type:'string',bind:{ key:'skflx',data:[]},width:110,hidden:true,align:'left'},
                       {field:'biz',title:'币种',type:'string',bind:{ key:'biz',data:[]},width:110,hidden:true,align:'left'},
                       {field:'fkrq',title:'付款日期',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'fkbl',title:'付款比例(%)',type:'int',width:80,hidden:true,align:'left'},
                       {field:'yk_je_big',title:'应扣金额(大写)',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'sf_je_big',title:'实付金额(大写)',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'check_je_big',title:'审核金额(大写)',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'total_j_big',title:'含税总额(大写)',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'bx_rcntr',title:'报销成本中心',type:'string',width:110,hidden:true,align:'left'},
                       {field:'cn_task',title:'出差任务',type:'string',width:220,hidden:true,align:'left'},
                       {field:'txren',title:'同行人员',type:'string',width:220,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "费用明细",
                table: "Fk_reimlist",
                columns: [{field:'rcntr',title:'成本中心/研发项目',type:'string',bind:{ key:'cntr',data:[]},width:180,edit:{type:'select'},align:'left',sort:true},
                       {field:'fei_type',title:'科目',type:'string',bind:{ key:'fei_typelist',data:[]},width:180,edit:{type:'select'},align:'left'},
                       {field:'fzdate',title:'发票日期',type:'datetime',width:110,edit:{type:'date'},align:'left',sort:true},
                       {field:'tax',title:'税额',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'ws_je',title:'未税金额',type:'decimal',width:110,readonly:true,edit:{type:'decimal'},align:'left'},
                       {field:'je',title:'金额(含税)',type:'decimal',width:100,edit:{type:'decimal'},align:'left'},
                       {field:'reimlist_id',title:'reimlist_id',type:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'reim_id',title:'reim_id',type:'int',width:80,hidden:true,align:'left'},
                       {field:'tickno',title:'票号',type:'string',width:100,edit:{type:'text'},align:'left'},
                       {field:'fujian',title:'附件',type:'file',width:110,align:'left'},
                       {field:'cc_bdate',title:'出差起时间',type:'datetime',width:150,hidden:true,edit:{type:'date'},align:'left',sort:true},
                       {field:'cc_edate',title:'出差止时间',type:'datetime',width:150,hidden:true,edit:{type:'date'},align:'left',sort:true},
                       {field:'t_num',title:'天数',type:'decimal',width:80,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'r_num',title:'人数',type:'int',width:80,hidden:true,edit:{type:'number'},align:'left'},
                       {field:'b_dd',title:'起地',type:'string',width:220,hidden:true,edit:{type:'text'},align:'left'},
                       {field:'e_dd',title:'止地',type:'string',width:220,hidden:true,edit:{type:'text'},align:'left'},
                       {field:'bz_je',title:'补助金',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'jt_tax',title:'交通费-税金',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'jt_je',title:'交通费-金额(不含税)',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'zz_tax',title:'住宿费-税金',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'zz_je',title:'住宿费-金额(不含税)',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'other_tax',title:'其他费-税金',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'other_je',title:'其他费-金额(不含税)',type:'decimal',width:110,hidden:true,edit:{type:'decimal'},align:'left'},
                       {field:'tick_type',title:'发票类别',type:'string',bind:{ key:'pj_typelist',data:[]},width:120,hidden:true,edit:{type:'select'},align:'left'},
                       {field:'jk_content',title:'扣减事项',type:'string',width:220,hidden:true,edit:{type:''},align:'left'},
                       {field:'jk_je',title:'扣减金额(含税)',type:'decimal',width:110,hidden:true,edit:{type:''},align:'left'},
                       {field:'check_je',title:'审核金额(含税)',type:'decimal',width:110,hidden:true,edit:{type:''},align:'left'},
                       {field:'remark',title:'备注',type:'string',width:220,edit:{type:'textarea'},align:'left'}],
                sortName: "reimlist_id",
                key: "reimlist_id"
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
